package org.dromara.system.converter;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.LocalDateTimeUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.StrUtil;
import org.dromara.common.core.domain.R;
import org.dromara.system.constant.MachineConstant;
import org.dromara.system.domain.*;
import org.dromara.system.domain.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.redisson.api.RList;

import java.util.List;

/**
 * @author 王星
 * @date 2024/5/29 下午1:48
 */
@Mapper(componentModel = "spring", imports = {NumberUtil.class, LocalDateTimeUtil.class, Convert.class, StrUtil.class, MachineConstant.class,})
public interface MachineConverters {

    MachineConverters INSTANCE = Mappers.getMapper(MachineConverters.class);


    List<SysUserVo> toSysUserVoList(List<SysUser> sysUsers);

    List<SimMallNameVo> toSimMallNameVoList(List<SimMallName> list);

    List<SimMallClassificationVo> toSimMallClassificationsVoList(List<SimMallClassification> simMallClassifications);

    WechatConfigVo wechatConfigToVo(WechatConfig wechatConfig);

    List<SimUserLevelVo> toSimUserLevelVoList(List<SimUserLevel> list);
}
